var app = new Vue({
    el: '#app',
    data: {
        paymentId:0,
        form: {},
        issearch: false
    },
    methods: {
        get_data: function() {
            var that = this;
            that.issearch = true;
            ns.get({
                action: 'getconfirmroomfeehistory',
                paymentId: that.paymentId
            }, function(succeed, data, err) {
                that.issearch = false;
                if (succeed) {
                    that.form = data;
                }
            });
        },
        do_print:function(){
            var that = this;
            ns.openWin('printInvoice', '打印单据', {
                printId: that.form.printId
            });
        }
    }
});
apiready = function() {
    api.parseTapmode();
    ns = window.Foresight.Util;
    app.paymentId = api.pageParam.paymentId;
    app.get_data();
}
